package cn.ljy.uem.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 职务
 *
 * @author 凡渊
 * @date 2022/07/18 10:42:37
 */
@ApiModel(value = "职务")
@Data
@NoArgsConstructor
public class SchoolPosition implements java.io.Serializable {
    private Integer id;
    @Length(min = 2, max = 30, message = "名称长度必须在 {min} - {max} 之间")
    private String name;
    @NotNull(message = "级别不能为空")
    private Integer sort;
    private Date createTime;
    private Date updateTime;
}
